

// React.Component
// {Component}

import React,{Component} from 'react'
export default class MyFoot extends Component{
    render(){
        return (
            <footer>
                <h2>WH2217 集团 &copy; 版权所有</h2>
            </footer>
        )
    }
}

// 构造函数
class Person{
    constructor(name,age){
        this.name = name;
        this.age = age;
    }
}

// 继承 
class Student extends Person{
    constructor(name,age,score){
        
        super(name,age)
        this.score = score;
    }
}